<!DOCTYPE html >
<html lang="en" xmlns:th="https://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>化工职业技术学院图书管理</title>
  <link rel="stylesheet" href="/css/bootstrap.min.css"/>
  <script src="/js/jquery-3.5.1.min.js"></script>
  <script src="/js/bootstrap.min.js"></script>
  <style>
    .div1{
      width: 50%;
      height: 500px;
      margin: 0 auto;
    }
  </style>
</head>
<body>
<div class="div1">
  <h1>修改信息</h1>
  <hr>
  <form action="/homepage/selectoneuser" method="get">
    <div class="form-group">
      <label for="select">搜索用户账号</label>
      <input class="form-control" type="text" name="username" id="select" placeholder="搜索用户账号...">
    </div>
    <button type="submit" class="btn btn-default">搜索</button>
    <h2 th:text="${msg}"></h2>
  </form>
  <hr>
  <form action="/homepage/updateuser" method="post" th:if="${user!=null}" th:object="${user}">
    <div class="form-group">
      <label for="id">用户编号</label>
      <input type="text" class="form-control" id="id"  name="id" placeholder="id"  th:value="*{id}">
    </div>
    <div class="form-group">
      <label for="name">用户姓名</label>
      <input type="text" class="form-control" id="name"  name="username" placeholder="账号..."  th:value="*{username}">
    </div>
    <div class="form-group">
      <label for="whirte">密码</label>
      <input type="text" class="form-control" id="whirte" name="password" placeholder="密码..." th:value="*{password}">
    </div>
    <button type="submit" class="btn btn-default">提交修改</button>


  </form>
</div>
</body>
</html>